package easyjava.hibernate.interceptor;

import java.awt.Window.Type;
import java.io.Serializable;
import java.util.Arrays;

import org.hibernate.EmptyInterceptor;

public class QingIntercetpor extends EmptyInterceptor {

  public boolean onLoad(Object entity,Serializable id,Object[] state,String[] propertyNames,Type[]types){
	    System.out.println("entity:"+entity);
	    System.out.println("id:"+id);
	    System.out.println("state:"+Arrays.toString(state));
	    System.out.println("propertyNames:"+Arrays.toString(propertyNames));
	    System.out.println("types"+Arrays.toString(types));
	    return true;
  }

}
